package com.py.credit.service.impl;

import com.py.credit.dao.SyslogDao;
import com.py.credit.entity.LhjcProcess;
import com.py.credit.entity.Template;
import com.py.credit.service.SyslogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SyslogServiceImpl implements SyslogService {

    @Autowired
    private SyslogDao syslogDao;

    @Override
    public void addProcess(String ajbh, String name, String status, String loginName, String realName, long managerId, long deptId) {
        syslogDao.addProcess(ajbh, name, status, loginName, realName, managerId, deptId);
    }

    @Override
    public void addYcProcess(String ajbh, String name, String status, String loginName, String realName, long managerId, long deptId, String description) {
        syslogDao.addYcProcess(ajbh, name, status, loginName, realName, managerId, deptId, description);
    }

    @Override
    public List<LhjcProcess> getProcessList(String ajbh) {
        return syslogDao.getProcessList(ajbh);
    }

    @Override
    public Template selectMbInfo(int id) {
        return syslogDao.selectMbInfo(id);
    }
}
